package com.tristia.entity;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "cds"
})
@XmlRootElement
public class Cds {

    @XmlElement(name="cd", required = true)
    protected List<Cd> cds;
    
    public Cds() {
    }

    public Cds(List<Cd> cds) {
    	setCds(cds);
	}

	public List<Cd> getCds() {
        if (cds == null) {
        	cds = new ArrayList<Cd>();
        }
        return this.cds;
    }

	public void setCds(List<Cd> cds) {
		this.cds = cds;
	}

	@Override
	public String toString() {
		return (this.cds != null) ? "{\"cds\": " + this.cds.toString() + "}" : "{cds:[]}";
	}
}
